package com.ssm.wuye.service;
/*
 *desc:
 *author:wjs
 *time:2019/4/25 0025
 *version:1.2.3
 */

import com.ssm.wuye.domain.SysAdminInfo;
import com.ssm.wuye.domain.SysAdminInfoExample;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface SysAdminInfoService {


    /**
     * 主键修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(SysAdminInfo record);

    /**
     * 查询总条数
     * @param example
     * @return
     */
    long countByExample(SysAdminInfoExample example);

    int deleteByExample(SysAdminInfoExample example);

    /**
     * 根据ID删除
     * @param userid
     * @return
     */
    int deleteByPrimaryKey(Integer userid);

    int insert(SysAdminInfo record);

    /**
     * 增加
     * @param record
     * @return
     */
    int insertSelective(SysAdminInfo record);

    /**
     * 带分页查询
     * @param example
     * @param rowBounds
     * @return
     */
    List<SysAdminInfo> selectByExampleWithRowbounds(SysAdminInfoExample example, RowBounds rowBounds);

    /**
     * 带条件查询
     * @param example
     * @return
     */
    List<SysAdminInfo> selectByExample(SysAdminInfoExample example);

    /**
     * 查询一条数据
     * @param userid
     * @return
     */
    SysAdminInfo selectByPrimaryKey(Integer userid);



    int updateByPrimaryKey(SysAdminInfo record);


}
